import productApi from "@/api/declaration/mall/productApi"
import httpRequest from "@/config/axios/httpRequest"

// 商品统计 API
export const ProductStatisticsApi = {
  // 获得商品统计分析
  getProductStatisticsAnalyse: (params: any) => {
    return httpRequest.get(productApi.GetProductStatisticsAnalyse, {params})
  },
  // 获得商品状况明细
  getProductStatisticsList: (params: any) => {
    return httpRequest.get(productApi.GetProductStatisticsList, {params})
  },
  // 导出获得商品状况明细 Excel
  exportProductStatisticsExcel: (params: any) => {
    return httpRequest.download(productApi.ExportProductStatisticsExcel, params)
  },
  // 获得商品排行榜分页
  getProductStatisticsRankPage: async (params: any) => {
    return await httpRequest.get(productApi.ExportProductStatisticsExcel,{params})
  }
}
